package com.bdbit.ChargingStation.services;
import com.google.gson.annotations.SerializedName;
import java.util.List;

public class WechatCertResponse {
    private List<CertData> data;

    public List<CertData> getData() {
        return data;
    }

    public static class CertData {
        @SerializedName("serial_no")
        private String serialNo;

        @SerializedName("encrypt_certificate")
        private EncryptCertificate encryptCertificate;

        public String getSerialNo() {
            return serialNo;
        }

        public EncryptCertificate getEncryptCertificate() {
            return encryptCertificate;
        }
    }

    public static class EncryptCertificate {
        private String algorithm;
        private String nonce;

        @SerializedName("associated_data")
        private String associatedData;

        private String ciphertext;

        public String getAlgorithm() { return algorithm; }
        public String getNonce() { return nonce; }
        public String getAssociatedData() { return associatedData; }
        public String getCiphertext() { return ciphertext; }
    }
}